# Title: TRABAJANDO  CON GDB (DEBUGGER)			Filename: gdb.s
# Author: Perez Bernal Arturo					Date: 23/Feb/2017
# Description: Hola Mundo en ARM
# Input: -
# Output: calcular

.text
##### Code segment ################################# 
.section	.data
.section	.text
.global		_start
_start:
	mov r1, $5		@ asignamos r0=5 
	cmp r1, $4		@ comparamos r1 con  4 ?
	sub r1, r1, $1		@ restamos 1 decimal
	cmp r1, $4		@ r1 no equivale a 4
	sub r1, r1, $4
	cmp r1, $4

####### Data segment ##############################

####### Exit Calls ################################
	mov r7, $1		@ salida  syscall
	svc $0			@ despertar kernel
.end
